package com.wisdytech.linkdcs.tool.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanghailin
 * @since 2018-06-14
 */
@TableName("TT_EQ_TOOL_REPAIR")
public class ToolRepair extends Model<ToolRepair> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private String pkId;

    /**
     * 工装编码
     */
    @TableField(exist = false)
    private String repairId;
    /**
     * 工装编码
     */
    @TableField("TOOL_CODE")
    private String toolCode;
    /**
     * 厂内维修开始时间
     */
    @TableField("REPAIR_DATE_START")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date repairDateStart;
    /**
     * 厂内维修结束时间
     */
    @TableField("REPAIR_DATE_END")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date repairDateEnd;
    /**
     * 维修人
     */
    @TableField("REPAIR_USER")
    private String repairUser;
    /**
     * 送修人
     */
    @TableField("SEND_REPAIR_USER")
    private String sendRepairUser;
    /**
     * 送修日期
     */
    @TableField("SEND_REPAIR_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sendRepairDate;

    /**
     * 返厂日期
     */
    @TableField("BACK_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date backDate;
    /**
     * 送修公司
     */
    @TableField("SEND_REPAIR_COMPANY")
    private String sendRepairCompany;
    /**
     * 联系人
     */
    @TableField("CONTACT")
    private String contact;
    /**
     * 联系号码
     */
    @TableField("CONTACT_NUMBER")
    private String contactNumber;
    @TableField("DEL_FLAG")
    private String delFlag;
    @TableField("CREATE_USER")
    private String createUser;
    @TableField("CREATE_DATE")
    private Date createDate;
    @TableField("UPDATE_USER")
    private String updateUser;
    @TableField("UPDATE_DATE")
    private Date updateDate;
    @TableField("REMARK")
    private String remark;

    @TableField("EQUIP_CODE")
    private String equipCode;

    /**
     * 需求时间
     */
    @TableField("REPAIR_DATE_START")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date requiredDate;
    /**
     * 申请时间
     */
    @TableField("REPAIR_DATE_END")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date applicationDate;

    @TableField("REPAIR_REQUIREMENT")
    private String repairRequirement;

    public String getRepairRequirement() {
        return repairRequirement;
    }

    public void setRepairRequirement(String repairRequirement) {
        this.repairRequirement = repairRequirement;
    }

    public Date getApplicationDate() {
        return applicationDate;
    }

    public void setApplicationDate(Date applicationDate) {
        this.applicationDate = applicationDate;
    }

    public Date getRequiredDate() {
        return requiredDate;
    }

    public void setRequiredDate(Date requiredDate) {
        this.requiredDate = requiredDate;
    }

    @TableField(exist = false)
    private String toolName;

    @TableField(exist = false)
    private String status;

    @TableField(exist = false)
    private String toolModel;

    @TableField(exist = false)
    private String toolType;

    @TableField(exist = false)
    private String toolTypeValue;

    @TableField(exist = false)
    private String opName;

    @TableField(exist = false)
    private String equipName;

    @TableField(exist = false)
    private String repairStatus;

    @TableField(exist = false)
    private String repairType;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRepairId() {
        return repairId;
    }

    public void setRepairId(String repairId) {
        this.repairId = repairId;
    }

    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getToolCode() {
        return toolCode;
    }

    public void setToolCode(String toolCode) {
        this.toolCode = toolCode;
    }

    public Date getRepairDateStart() {
        return repairDateStart;
    }

    public void setRepairDateStart(Date repairDateStart) {
        this.repairDateStart = repairDateStart;
    }

    public Date getRepairDateEnd() {
        return repairDateEnd;
    }

    public void setRepairDateEnd(Date repairDateEnd) {
        this.repairDateEnd = repairDateEnd;
    }

    public String getRepairUser() {
        return repairUser;
    }

    public void setRepairUser(String repairUser) {
        this.repairUser = repairUser;
    }

    public String getSendRepairUser() {
        return sendRepairUser;
    }

    public void setSendRepairUser(String sendRepairUser) {
        this.sendRepairUser = sendRepairUser;
    }

    public Date getSendRepairDate() {
        return sendRepairDate;
    }

    public void setSendRepairDate(Date sendRepairDate) {
        this.sendRepairDate = sendRepairDate;
    }

    public String getSendRepairCompany() {
        return sendRepairCompany;
    }

    public void setSendRepairCompany(String sendRepairCompany) {
        this.sendRepairCompany = sendRepairCompany;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getToolName() {
        return toolName;
    }

    public void setToolName(String toolName) {
        this.toolName = toolName;
    }

    public String getToolModel() {
        return toolModel;
    }

    public void setToolModel(String toolModel) {
        this.toolModel = toolModel;
    }

    public String getToolType() {
        return toolType;
    }

    public void setToolType(String toolType) {
        this.toolType = toolType;
    }

    public String getToolTypeValue() {
        return toolTypeValue;
    }

    public void setToolTypeValue(String toolTypeValue) {
        this.toolTypeValue = toolTypeValue;
    }

    public String getOpName() {
        return opName;
    }

    public void setOpName(String opName) {
        this.opName = opName;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public Date getBackDate() {
        return backDate;
    }

    public void setBackDate(Date backDate) {
        this.backDate = backDate;
    }

    public String getRepairStatus() {
        return repairStatus;
    }

    public void setRepairStatus(String repairStatus) {
        this.repairStatus = repairStatus;
    }

    public String getRepairType() {
        return repairType;
    }

    public void setRepairType(String repairType) {
        this.repairType = repairType;
    }

    public String getEquipCode() {
        return equipCode;
    }

    public void setEquipCode(String equipCode) {
        this.equipCode = equipCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

    @Override
    public String toString() {
        return "ToolRepair{" +
        ", pkId=" + pkId +
        ", toolCode=" + toolCode +
        ", repairDateStart=" + repairDateStart +
        ", repairDateEnd=" + repairDateEnd +
        ", repairUser=" + repairUser +
        ", sendRepairUser=" + sendRepairUser +
        ", sendRepairDate=" + sendRepairDate +
        ", sendRepairCompany=" + sendRepairCompany +
        ", contact=" + contact +
        ", contactNumber=" + contactNumber +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", createDate=" + createDate +
        ", updateUser=" + updateUser +
        ", updateDate=" + updateDate +
        ", remark=" + remark +
        "}";
    }
}
